<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>first</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        canvas {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
    <div id="container">
        <div id="canvas-frame"></div>
    </div>
    <script id="vs" type="x-shader/x-vertex">
        varying vec4 vPosition;
        void main() {
            gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
            vPosition = gl_Position;
        }
    </script>
    <script id="fs" type="x-shader/x-fragment">
        varying vec4 vPosition;
        void main() {
            gl_FragColor = vec4(vPosition.x + 0.5, vPosition.y + 0.5, vPosition.z + 0.5, 1.0);
        }
    </script>
    <script type="module" src="./index.js"></script>
</body>

</html>